<template>
  <div id="app">
    <div class="row">
      <Banner/>
    </div>
    <div class="row">
      <div class="col-xs-2 col-xs-offset-2">
        <div class="list-group">
          <!--<a class="list-group-item active" href="./about.html">About</a>-->
          <!--<a class="list-group-item" href="./home.html">Home</a>-->
          <!--使用router-link标签 指定路由 底层会被转译成a标签 active-class 被选中时的样式 to是指定那个路由的路径 -->
          <!--replace属性  开启覆盖前一个浏览器记录的属性 只对自己的前一次浏览器记录生效 -->
          <router-link class="list-group-item" active-class="active" to="/about">About</router-link>
          <router-link class="list-group-item" active-class="active" to="/home">Home</router-link>
        </div>
      </div>
      <div class="col-xs-6">
        <div class="panel">
          <div class="panel-body">
            <!-- 使用路由返回的结果 -->
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Banner from "@/components/Banner.vue";
export default {
  name: 'App',
  components: {
    Banner
  }
}
</script>

